#!/usr/bin/python
# -*- coding:utf-8 -*-
import sys

from PySide2 import QtWidgets, QtCore
from PySide2.QtWidgets import QApplication
from fileForm_ui import Ui_fileForm
from mainForm_ui import Ui_wellDataManageFrom
from fileFormFunction import FileFormFunction

class FileFormFunctionWindow(QtWidgets.QMainWindow, Ui_fileForm):
    def __init__(self):
        super().__init__()
        self.setupUi(self)

class MainWindow(QtWidgets.QMainWindow, Ui_wellDataManageFrom):
    def __init__(self):
        super().__init__()
        self.setupUi(self)
        self.action.triggered.connect(self.import_well_data)

    def import_well_data(self):
        # 创建 Window 窗口的实例
        self.well_data_Window = FileFormFunction()
        # 设置为模态窗口
        self.well_data_Window.setWindowModality(QtCore.Qt.ApplicationModal)
        # 显示窗口
        self.well_data_Window.show()

# 导入数据窗口
if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MainWindow()
    window.show()
    sys.exit(app.exec_())